from math import pow, sqrt, factorial, fmod, gcd, sin, cos, tan,asin,acos,atan


def jia(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x + y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def jian(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x - y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def cheng(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x * y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def chu(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x / y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def chuqz(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x // y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def chuqu(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = x % y
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rpow(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = pow(x, y)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rsqrt(x1, text):
    x = int(x1.get())
    c = sqrt(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rfabs(x1, text):
    x = int(x1.get())
    c = abs(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rfactorial(x1, text):
    x = int(x1.get())
    c = factorial(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rfmod(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = fmod(x, y)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rgcd(x1, y1, text):
    x, y = int(x1.get()), int(y1.get())
    c = gcd(x, y)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rsin(x1, text):
    x = int(x1.get())
    c = sin(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rcos(x1, text):
    x = int(x1.get())
    c = cos(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)


def rtan(x1, text):
    x = int(x1.get())
    c = tan(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)
def rasin(x1,text):
    x=int(x1.get())
    c=asin(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)
def racos(x1,text):
    x=int(x1.get())
    c=acos(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)
def ratan(x1,text):
    x=int(x1.get())
    c=atan(x)
    text.delete("0.0", 'end')
    text.insert('insert', c)